package pet;

class Pet {
    public final String name;
    public final int age;
    public final int weight;
    public final int activity;
    public final int sensitivity;
    double score;
    public Pet(String name, int age, int weight, int activity, int sensitivity) {
        this.name = name;
        this.age = age;
        this.weight = weight;
        this.activity = activity;
        this.sensitivity = sensitivity;
        this.score=(this.weight+this.activity+this.sensitivity)/3.0;
    }

    // Getter 方法
    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public int getWeight() {
        return weight;
    }

    public int getActivity() {
        return activity;
    }

    public int getSensitivity() {
        return sensitivity;
    }


}
